package com.duoduo.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class AppController {

	@RequestMapping(value = {
			"/", "/index"
	}, method = RequestMethod.GET)
	public String index() {
		return "index";
	}

	@RequestMapping(value = "/error", method = RequestMethod.GET)
	public String error() {
		return "error";
	}

	@RequestMapping(value = "/result", method = RequestMethod.GET)
	public String result() {
		return "result";
	}
}
